package com.baijia.jigou.principal;

import javax.validation.constraints.NotNull;

import com.baijia.authentication.principal.Credentials;


/**
 * @title CookieJigouCredentials
 * @desc TODO 
 * @author caoliang
 * @date 2015年11月23日
 * @version 1.0
 */
public class CookieJigouCredentials implements Credentials {
        
    /** Unique ID for serialization. */
    private static final long serialVersionUID = -502789110658252052L;
    
    /**
     * 产品线
     */
    @NotNull
    private Integer accountType;
    
    /** The jigou sessionId. */
    private String sessionId;
    
    
    public CookieJigouCredentials(){
        
    }
    
    public CookieJigouCredentials(Integer accountType, String sessionId){
        this.accountType = accountType;
        this.sessionId = sessionId;
    }

    public Integer getAccountType() {
    
        return accountType;
    }

    public void setAccountType(Integer accountType) {
    
        this.accountType = accountType;
    }

    public String getSessionId() {
    
        return sessionId;
    }

    public void setSessionId(String sessionId) {
    
        this.sessionId = sessionId;
    }

    @Override
    public String toString() {
        return "TempJigouCredentials [accountType=" + accountType + ", sessionId=" + sessionId + "]";
    }

    @Override
    public String getUsername() {
        
        // TODO Auto-generated method stub
        return null;
            
    }
}
